/*
 * 文 件 名 : Friend.java
 * 版    权 : China Machi.Co.,Ltd.Copyright 2009-2011.All rights reserved
 * 描    述 : <描述>
 * 修 改 人 : lixg
 * 修改时间 : 2012-9-18
 * 跟踪单号 : <跟踪单号>
 * 修改单号 : <修改单号>
 * 修改内容 : <修改内容>
 */
package com.fire8.dolphin.model;

/**
 * 好友列表
 * <功能详细描述>
 *
 * @author  lixg
 * @version [版本号,2012-9-18]
 * @see     [相关类/方法]
 * @since   [产品/模块]
 */
public class Friend
{
    private Integer friendId;//本地ID
    private Integer remoteId;//用户远程ID
    private Integer groupId;//所以分组
    private String account;//
    private String userName;//用户名
    private String userHead;//头像
    private Integer online;//在线状态
    private String remark;//用户介绍
    private Integer haveMsg;//是否有新消息[0：没有；1：有]
    
    //表名
    public static final String TABLE_NAME="t_friend";
    
    //列名
    public static final String C_FRIEND_ID="friendId";
    public static final String C_USER_ID="remoteId";
    public static final String C_GROUP_ID="groupId";
    public static final String C_ACCOUNT="account";
    public static final String C_USER_NAME="userName";
    public static final String C_USER_HEAD="userHead";
    public static final String C_ON_LINE="online";
    public static final String C_REMARK="remark";
    public static final String C_HAS_MSG="haveMsg";
    
    public static final String CREATE_TABLE= new StringBuffer("CREATE TABLE ")
    .append(TABLE_NAME)
    .append("(")
    .append(C_FRIEND_ID).append(" integer primary key autoincrement")//id
    .append(",").append(C_USER_ID).append(" integer ")//服务器上的ID
    .append(",").append(C_GROUP_ID).append(" integer ")
    .append(",").append(C_ACCOUNT)
    .append(",").append(C_USER_NAME)
    .append(",").append(C_USER_HEAD)
    .append(",").append(C_ON_LINE)
    .append(",").append(C_REMARK)
    .append(",").append(C_HAS_MSG).append(" integer ")
    .append(")")
    .toString();
    
    public Integer getFriendId()
    {
        return friendId;
    }
    public void setFriendId(Integer friendId)
    {
        this.friendId = friendId;
    }
    public Integer getRemoteId()
    {
        return remoteId;
    }
    public void setRemoteId(Integer remoteId)
    {
        this.remoteId = remoteId;
    }
    public Integer getGroupId()
    {
        return groupId;
    }
    public void setGroupId(Integer groupId)
    {
        this.groupId = groupId;
    }
    public String getUserName()
    {
        return userName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    public String getUserHead()
    {
        return userHead;
    }
    public void setUserHead(String userHead)
    {
        this.userHead = userHead;
    }
    public Integer getOnline()
    {
        return online;
    }
    public void setOnline(Integer online)
    {
        this.online = online;
    }
    public String getRemark()
    {
        return remark;
    }
    public void setRemark(String remark)
    {
        this.remark = remark;
    }
    public String getAccount()
    {
        return account;
    }
    public void setAccount(String account)
    {
        this.account = account;
    }
    
    
    
}
